package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_l_ck_zhenhuan_second_open_party", desc = "甄嬛无双门客-甄嬛二阶段开茶话会", autoSave = true, dataUpload = true, eventName = "zhguest_secteabegin", uploadCk = true)
public class LogZhenHuanSecondOpenParty extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动Id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true, dataAttribute = "userid")
    private long userId;
    @FieldTypeAnnotation(desc = "宴会id", dataAttribute = "zhguest_secteaid")
    private long partyId;
    @FieldTypeAnnotation(desc = "宴会等级", dataAttribute = "zhguest_sectealevel")
    private int partyLevel;
    @FieldTypeAnnotation(desc = "获得威望", dataAttribute = "zhguest_secteabeginget")
    private long addPrestige;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogZhenHuanSecondOpenParty(int activityId, long userId, long partyId, int partyLevel, long addPrestige) {
        this.activityId = activityId;
        this.userId = userId;
        this.partyId = partyId;
        this.partyLevel = partyLevel;
        this.addPrestige = addPrestige;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
